@import "common/_reset.scss";
@import "common/_header-ByZkx.scss";
@function p($px) {
    @return $px/2*1px;
}

@mixin img {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

$bdcolor:#cdccd0;
.mobile {
    height: 100%;
    position: relative;
    font-family: "黑体";
    background-image: url(../img/allbg.png);
    input[type="checkbox"] {
        position: absolute;
        height: 0;
    }
    #one:checked~section>ul>li:nth-child(1)>label>p {
        background-color: #f85c5c;
    }
    #two:checked~section>ul>li:nth-child(2)>label>p {
        background-color: #f85c5c;
    }
    #three:checked~section>ul>li:nth-child(3)>label>p {
        background-color: #f85c5c;
    }
    #four:checked~footer>p>label>span {
        background-color: #f85c5c;
    }
    #four:checked ~ section>ul>li>label>p{
        background-color: #f85c5c;
    }
    section {
        ul {
            background-color: #fff;
            li {
                border-bottom: p(1) solid $bdcolor;
                display: flex;
                align-items: center;
                justify-content: space-around;
                position: relative;
                >label p:nth-child(1) {
                    width: p(46);
                    height: p(46);
                    border-radius: 50%;
                    border: p(3) solid #f85c5c;
                    text-align: center;
                    line-height: p(46);
                    display: flex;
                    align-items: center;
                    >i {
                        font-size: p(40);
                        color: #fff;
                    }
                }
                .img-box {
                    width: p(120);
                    height: p(125);
                    position: relative;
                    overflow: hidden;
                    img {
                        width: 100%;
                        @include img;
                    }
                }
                .text {
                    width: p(373);
                    height: p(182);
                    display: flex;
                    flex-wrap: wrap;
                    align-items: center;
                    position: relative;
                    h2 {
                        font-size: p(24);
                        width: 100%;
                        font-weight: normal;
                        font-family: "黑体";
                        color: #5c5c5c;
                        margin-left: p(-10);
                    }
                    >p:nth-of-type(1) {
                        font-size: p(24);
                        color: #eb7575;
                        width: 100%;
                    }
                    >p:nth-of-type(2) {
                        display: flex;
                        color: #2e2e2e;
                        span {
                            text-align: center;
                            line-height: p(40);
                            font-size: p(30);
                        }
                        >span:nth-child(2n-1) {
                            width: p(40);
                            height: p(40);
                            border: p(1) solid #6b6b6b;
                            background-color: #b5b5b5;
                        }
                        >span:nth-child(2) {
                            width: p(59);
                            height: p(40);
                            border-top: p(1) solid #6b6b6b;
                            border-bottom: p(1) solid #6b6b6b;
                        }
                    }
                    >i {
                        position: absolute;
                        text-align: center;
                        right: 0;
                        top: 50%;
                        color: #eb7575;
                        font-size: p(24);
                        -webkit-transform: translateY(-50%);
                        -moz-transform: translateY(-50%);
                        -ms-transform: translateY(-50%);
                        -o-transform: translateY(-50%);
                        transform: translateY(-50%);
                        &::before {
                            display: block;
                            font-size: p(46);
                            font-weight: bold;
                            color: #eb7575;
                        }
                    }
                }
            }
        }
    }
    /* 底部 */
    footer {
        position: fixed;
        width: 100%;
        background-color: #fff;
        bottom: 0;
        height: p(90);
        border-top: p(1) solid $bdcolor;
        display: flex;
        align-items: center;
        justify-content: space-around;
        >p:nth-child(1) {
            width: p(123);
            display: flex;
            justify-content: space-between;
            align-items: center;
            >label {
                span {
                    display: block;
                    width: p(46);
                    height: p(46);
                    border: p(3) solid #f85c5c;
                    text-align: center;
                    line-height: p(46);
                    border-radius: 50%;
                    color: #fff;
                    display: flex;
                    align-items: center;
                    i {
                        font-size: p(40);
                    }
                }
            }
            >span:nth-child(2) {
                font-size: p(28);
                color: #5c5c5c;
            }
        }
        .text {
            font-size: p(24);
            color: #6b6b6b;
            width: p(205);
            height: 100%;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            text-align: center;
            p {
                width: 100%;
                text-align: center;
            }
            p:nth-child(1) {
                align-self: center;
                span {
                    font-size: p(30);
                    color: #e73838;
                }
            }
        }
        >button {
            width: p(161);
            height: p(71);
            border-radius: p(10);
            color: #fff;
            background-color: #e73838;
            font-size: p(23);
        }
    }
}